cmake_minimum_required(VERSION 3.10)

project(PhotoresistRecognition)

add_compile_options(-Wall -Wextra)

find_package(OpenCV 4 REQUIRED)
include_directories(${OPENCV_INCLUDE_DIRS})
# include_directories(/usr/include/opencv4)
set(OPENCV_DEPS opencv_core opencv_imgcodecs opencv_imgproc)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

add_executable(roughness src/roughness.cpp)
target_link_libraries(roughness ${OPENCV_DEPS})
# target_link_libraries(roughness ${OPENCV_LIBS})

add_executable(angle src/angle.cpp)
target_link_libraries(angle ${OPENCV_DEPS})
# target_link_libraries(angle ${OPENCV_LIBS})

add_executable(image_convert src/image_convert.cpp)
target_link_libraries(image_convert ${OPENCV_DEPS})
add_executable(convolution src/Convolution.cpp)
add_executable(rust src/Rust.cpp)
add_executable(divide src/Divide.cpp)
